package com.model;

import java.util.Date;

/**
 *
 * @author Lang Van Hao
 */
public class History {

    private int historyID;
    private int defectID;
    private int projectID;
    private String preStatus;
    private String newStatus;
    private String changeBy;
    private Date createDate;

    /**
     * Contructor for HistoryClass
     */
    public History() {
    }

    /**
     * Contructor for HistoryClass
     * @param historyID
     * @param defectID
     * @param projectID
     * @param preStatus
     * @param newStatus
     * @param changeBy
     * @param createDate
     */
    public History(int historyID, int defectID, int projectID, String preStatus,
            String newStatus, String changeBy, Date createDate) {
        this.setData(historyID, defectID, projectID, preStatus, newStatus, changeBy, createDate);
    }

    /**
     * Method to set data for HistoryClass
     * @param historyID
     * @param defectID
     * @param projectID
     * @param preStatus
     * @param newStatus
     * @param changeBy
     * @param createDate
     */
    public void setData(int historyID, int defectID, int projectID, String preStatus,
            String newStatus, String changeBy, Date createDate) {
        this.setHistoryID(historyID);
        this.setDefectID(defectID);
        this.setProjectID(projectID);
        this.setPreStatus(preStatus);
        this.setNewStatus(newStatus);
        this.setChangeBy(changeBy);
        this.setCreateDate(createDate);
    }

    /**
     * @return the historyID
     */
    public int getHistoryID() {
        return historyID;
    }

    /**
     * @param historyID the historyID to set
     */
    public void setHistoryID(int historyID) {
        this.historyID = historyID;
    }

    /**
     * @return the defectID
     */
    public int getDefectID() {
        return defectID;
    }

    /**
     * @param defectID the defectID to set
     */
    public void setDefectID(int defectID) {
        this.defectID = defectID;
    }

    /**
     * @return the projectID
     */
    public int getProjectID() {
        return projectID;
    }

    /**
     * @param projectID the projectID to set
     */
    public void setProjectID(int projectID) {
        this.projectID = projectID;
    }

    /**
     * @return the preStatus
     */
    public String getPreStatus() {
        return preStatus;
    }

    /**
     * @param preStatus the preStatus to set
     */
    public void setPreStatus(String preStatus) {
        this.preStatus = preStatus;
    }

    /**
     * @return the newStatus
     */
    public String getNewStatus() {
        return newStatus;
    }

    /**
     * @param newStatus the newStatus to set
     */
    public void setNewStatus(String newStatus) {
        this.newStatus = newStatus;
    }

    /**
     * @return the changeBy
     */
    public String getChangeBy() {
        return changeBy;
    }

    /**
     * @param changeBy the changeBy to set
     */
    public void setChangeBy(String changeBy) {
        this.changeBy = changeBy;
    }

    /**
     * @return the createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate the createDate to set
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
